package org.yjc.custom;

import java.sql.Date;
import java.time.LocalDate;

public class DateUtils {
	public static Date currentTime() {
		LocalDate date = LocalDate.now(); //获取当前系统时间
		Date date1 = Date.valueOf(date);
		return date1;	
	}
	
	public static Date laterTime() {
		LocalDate date = LocalDate.now(); //获取当前系统时间
		LocalDate date1 = date.plusYears(1); //将当前时间往后加一年
		Date date2 = Date.valueOf(date1);
		return date2;
		
	}
}
